package cn.ncu.wechat.service;

import cn.ncu.wechat.model.Orders;
import cn.ncu.wechat.util.Result;
import cn.ncu.wechat.vo.OrderVo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 
 * @description 针对表【order(订单表)】的数据库操作Service
 * @createDate 2025-01-07 16:15:26
 */
public interface OrdersService extends IService<Orders> {
    Result<?> AddOrder(OrderVo orderVo,String token);
    int checkOrder(OrderVo orderVo);
    Result<?> getOrdersByKey(Integer page,Integer pageSize,Integer status);
    Result<?> getOrderDetail(String orderNo);

    Result<?> getOrderListByKey(Integer page,Integer pageSize,Integer status,String orderNo,String phone);
    Result<?> payOrder(String orderNo);

    Result<?> getVerifications(Integer page,Integer pageSize,String orderNo,String startDate,String endDate,Integer storeId);

    Result<?> refundOrder(String ordersNo,String reason);

    boolean updateOrder(String orderNo,int status,boolean verification,String refundReason,String payTime);
}
